package com.yh.dao.impl;

import com.yh.dao.SelectDao;
import com.yh.dao.common.HibernateUtil;
import com.yh.model.StreetModel;

import java.util.List;

public class Streetimpl implements SelectDao<StreetModel> {
    @Override
    public List<StreetModel> all() {
        List<StreetModel> list = HibernateUtil.currentSession().createCriteria(StreetModel.class).list();
        return list;
    }

}
